package com.y.architecture.login;

import com.y.architecture.bean.User;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by youjingjing on 2017/12/21.
 */

public interface LoginApi {
    String BASE_URL = "https://free-api.heweather.com/s6/weather/";
    /**
     * 分页获取分类数据
     *
     * @param name 城市
     * @return 返回分类数据列表
     */
    @GET("now?key=ac68a3482d264e638111a27d4ee77089")
    Observable<User> getUser(@Query("name") String name);
}
